<#import "/layout/common.html" as com>
<#assign header>Quản lý <a href="/game/edit">Game</a></#assign>
<#assign pageCss>td{font-size:12px;;}.fields{width:100%;}textarea{font-family:Arial;font-size:small;}.text{width:100%;}td.l{vertical-align:top;white-space:nowrap;width:100px;text-align:right;}</#assign>
<@com.page title="Game" css=pageCss header=header>
<form method="post"><input type="hidden" name="id" value="<#if game?has_content>${game.id!?c}</#if>"/>
<table class="fields"><tr><td class="l"><label for="title">Title</label></td>
<td><input type="text" id="title" name="title" class="text" value="<#if game?has_content>${game.title!?html}</#if>"/></td>
</tr><tr><td class="l"><label for="code">Code</label></td>
<td><input type="text" id="code" name="code" class="text" value="<#if game?has_content>${game.code!?html}</#if>"/></td>
</tr><tr><td class="l"><label for="catId">Cat</label></td>
<td><input type="text" id="catId" name="catId" class="text" value="<#if game?has_content>${game.catId!?html}</#if>"/></td>
</tr><tr><td class="l"><label for="fileSize">File Size</label></td>
<td><input type="text" id="fileSize" name="fileSize" class="text" value="<#if game?has_content>${game.fileSize!?html}</#if>"/></td>
</tr><tr><td class="l"><label for="jarUrl">Jar URL</label></td>
<td><input type="text" id="jarUrl" name="jarUrl" class="text" value="<#if game?has_content>${game.jarUrl!?html}</#if>"/></td>
</tr><tr><td class="l"><label for="jadUrl">Jad URL</label></td>
<td><input type="text" id="jadUrl" name="jadUrl" class="text" value="<#if game?has_content>${game.jadUrl!?html}</#if>"/></td>
</tr><tr><td class="l"><label for="imageUrl">Image URL</label></td>
<td><input type="text" id="imageUrl" name="imageUrl" class="text" value="<#if game?has_content>${game.imageUrl!?html}</#if>"/></td>
</tr><tr><td class="l"><label for="intro">Intro</label></td>
<td><textarea rows="8" cols="40" class="text" id="intro" name="intro"><#if game?has_content>${game.intro!?html}</#if></textarea></td>
</tr><tr><td class="l"><label for="content">Content</label></td>
<td><textarea rows="16" cols="40" class="text" id="content" name="content"><#if game?has_content>${game.content!?html}</#if></textarea></td>
</tr><tr><td>&nbsp;</td><td><input type="submit" value="Save"/></td>
</tr></table></form>
<#if games?has_content>
<ul><#list games as g><li><a href="/game/edit?id=${g.id!?c}">${g.title!"Không tên"?html}</a></li></#list></ul>
</#if>
</@com.page>